package cn.xiaozhu.Controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * idea的跳转控制
 *
 * @author shkstart
 * @date 2019/8/8 - 13:00
 */
@Controller
public class WelcomeController {


    private final static Logger logger = LoggerFactory.getLogger(WelcomeController.class);

    /**
     * 该方法通过返回idea跳转到idea.jsp页面
     */
    @RequestMapping(path = "/hello")
    public String idea() {
        logger.info("进入hello");
        return "idea";
    }

    /**
     * 该方法通过返回git跳转到git.jsp
     */
    @RequestMapping(path = "/good")
    public String git() {
        System.out.println("login");
        return "git";
    }

    /**
     * 该方法跳过返回maven跳转到maven.jsp
     */
    @RequestMapping(path = "/great")
    public String maven() {
        logger.info("study plan");
        return "maven";
    }

}
